import request from '@/utils/request'
export function getCaseCosts (params) {
  return request({
    url: '/api/Case/CaseCost/GetCaseCosts',
    method: 'get',
    params
  })
}

export function calculateCaseCosts (caseId) {
  return request({
    url: '/api/Case/CaseCost/CalculateCaseCosts',
    method: 'get',
    params: { caseId }
  })
}

export function addCost (data) {
  return request({
    url: '/api/Case/CaseCost/AddCost',
    method: 'post',
    data
  })
}

export function editCost (data) {
  return request({
    url: '/api/Case/CaseCost/EditCost',
    method: 'post',
    data
  })
}

export function deleteCost (id) {
  return request({
    url: '/api/Case/CaseCost/DeleteCost',
    method: 'get',
    params: {
      id
    }
  })
}